package crawer.Appmain;

import java.util.Vector;

public class SiteBean{
	
	public int threadpoolsize = 1;
	public String sitename;
	public String webid;
	public String type;
	public String webform;
	public String configfile ;
	public String storePath = "";
	public String proxyname = "";
	public String encoding = "";
	
	public int port = 0;
	public int respTimeout;
	public int  readtimeout;	
	public int interval = 0 ;
	public boolean usingJS = false;
	
	public Vector< String> urlList = new Vector< String>();
	
	/**
	 * for unit test 
	 */
	public String toString(){
		StringBuffer sb  = new StringBuffer();
		sb.append("threadpoolsize = "+this.threadpoolsize+"\n");		
		sb.append("sitename = "+this.sitename+"\n");
		sb.append("type = "+this.type+"\n");
		sb.append("configfile = "+this.configfile+"\n");
		sb.append("storePath = "+this.storePath+"\n");
		sb.append("proxyname = "+this.proxyname+"\n");
		sb.append("port = "+this.port+"\n");
		sb.append("encoding = "+this.encoding+"\n");
		sb.append("respTimeout = "+this.respTimeout+"\n");
		sb.append("readTimeout = "+this.readtimeout+"\n");
		sb.append("interval = "+this.interval+"\n");
		sb.append("usingjs = "+usingJS+"\n");
		sb.append("urlList = "+this.urlList+"\n");
		return sb.toString();	
	}	
}
